package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "xtx_article_comment")
public class XtxArticleComment {
    @Id
    @Column(name = "article_comment_id")
    private Integer articleCommentId;

    /**
     * 文章id
     */
    @Column(name = "article_id")
    private Integer articleId;

    /**
     * 评论
     */
    private String comment;

    /**
     * 评论者用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "create_time")
    private Date createTime;

    /**
     * 状态 0:未启用  1:已启用
     */
    private Integer status;

    /**
     * @return article_comment_id
     */
    public Integer getArticleCommentId() {
        return articleCommentId;
    }

    /**
     * @param articleCommentId
     */
    public void setArticleCommentId(Integer articleCommentId) {
        this.articleCommentId = articleCommentId;
    }

    /**
     * 获取文章id
     *
     * @return article_id - 文章id
     */
    public Integer getArticleId() {
        return articleId;
    }

    /**
     * 设置文章id
     *
     * @param articleId 文章id
     */
    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    /**
     * 获取评论
     *
     * @return comment - 评论
     */
    public String getComment() {
        return comment;
    }

    /**
     * 设置评论
     *
     * @param comment 评论
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    /**
     * 获取评论者用户id
     *
     * @return user_id - 评论者用户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置评论者用户id
     *
     * @param userId 评论者用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取状态 0:未启用  1:已启用
     *
     * @return status - 状态 0:未启用  1:已启用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置状态 0:未启用  1:已启用
     *
     * @param status 状态 0:未启用  1:已启用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}